package org.training.person.mason.client.common;

import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.datepicker.client.DateBox;
import com.google.gwt.user.client.ui.FileUpload;
import com.google.gwt.user.client.ui.Button;

public class RegistPanel extends PopupPanel {

	public RegistPanel() {
		super(true);
		
		FlowPanel flowPanel = new FlowPanel();
		setWidget(flowPanel);
		flowPanel.setSize("501px", "578px");
		
		AbsolutePanel absolutePanel = new AbsolutePanel();
		flowPanel.add(absolutePanel);
		absolutePanel.setHeight("39px");
		
		Label lblNewLabel = new Label("\u6B22\u8FCE\u6CE8\u518C\u4F7F\u7528\u672C\u7CFB\u7EDF");
		absolutePanel.add(lblNewLabel, 10, 10);
		lblNewLabel.setSize("488px", "29px");
		
		Grid grid = new Grid(14, 3);
		flowPanel.add(grid);
		grid.setSize("507px", "440px");
		
		Label lblNewLabel_1 = new Label("\u7528\u6237\u540D\uFF1A");
		lblNewLabel_1.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
		grid.setWidget(0, 0, lblNewLabel_1);
		
		TextBox userName = new TextBox();
		grid.setWidget(0, 1, userName);
		userName.setWidth("116px");
		
		Label label_14 = new Label("New label");
		grid.setWidget(0, 2, label_14);
		
		Label lblNewLabel_3 = new Label("\u5BC6\u7801\uFF1A");
		lblNewLabel_3.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
		grid.setWidget(1, 0, lblNewLabel_3);
		
		PasswordTextBox password = new PasswordTextBox();
		grid.setWidget(1, 1, password);
		password.setWidth("115px");
		
		Label lblNewLabel_2 = new Label("New label");
		grid.setWidget(1, 2, lblNewLabel_2);
		
		Label lblNewLabel_4 = new Label("\u91CD\u590D\u5BC6\u7801\uFF1A");
		lblNewLabel_4.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
		grid.setWidget(2, 0, lblNewLabel_4);
		
		PasswordTextBox repassword = new PasswordTextBox();
		grid.setWidget(2, 1, repassword);
		repassword.setWidth("114px");
		
		Label label_1 = new Label("New label");
		grid.setWidget(2, 2, label_1);
		
		Label label = new Label("\u59D3\u540D\uFF1A");
		label.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
		grid.setWidget(3, 0, label);
		
		TextBox name = new TextBox();
		grid.setWidget(3, 1, name);
		name.setWidth("92px");
		
		Label label_2 = new Label("New label");
		grid.setWidget(3, 2, label_2);
		
		Label lblNewLabel_5 = new Label("\u6027\u522B\uFF1A");
		lblNewLabel_5.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
		grid.setWidget(4, 0, lblNewLabel_5);
		
		ListBox gender = new ListBox();
		gender.addItem("");
		gender.addItem("\u7537");
		gender.addItem("\u5973");
		grid.setWidget(4, 1, gender);
		gender.setWidth("65px");
		
		Label label_3 = new Label("New label");
		grid.setWidget(4, 2, label_3);
		
		Label lblNewLabel_6 = new Label("\u751F\u65E5\uFF1A");
		lblNewLabel_6.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
		grid.setWidget(5, 0, lblNewLabel_6);
		
		DateBox birth = new DateBox();
		grid.setWidget(5, 1, birth);
		birth.setWidth("69px");
		
		Label label_4 = new Label("New label");
		grid.setWidget(5, 2, label_4);
		
		Label lblNewLabel_7 = new Label("\u7535\u8BDD\uFF1A");
		lblNewLabel_7.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
		grid.setWidget(6, 0, lblNewLabel_7);
		
		TextBox telephone = new TextBox();
		grid.setWidget(6, 1, telephone);
		
		Label label_5 = new Label("New label");
		grid.setWidget(6, 2, label_5);
		
		Label lblNewLabel_8 = new Label("\u624B\u673A\uFF1A");
		lblNewLabel_8.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
		grid.setWidget(7, 0, lblNewLabel_8);
		
		TextBox cellphone = new TextBox();
		grid.setWidget(7, 1, cellphone);
		
		Label label_6 = new Label("New label");
		grid.setWidget(7, 2, label_6);
		
		Label label_13 = new Label("\u7167\u7247\uFF1A");
		label_13.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
		grid.setWidget(8, 0, label_13);
		
		FileUpload photo = new FileUpload();
		grid.setWidget(8, 1, photo);
		
		Label label_7 = new Label("New label");
		grid.setWidget(8, 2, label_7);
		
		Label lblNewLabel_9 = new Label("Email\uFF1A");
		lblNewLabel_9.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
		grid.setWidget(9, 0, lblNewLabel_9);
		
		TextBox email = new TextBox();
		grid.setWidget(9, 1, email);
		email.setWidth("350px");
		
		Label label_8 = new Label("New label");
		grid.setWidget(9, 2, label_8);
		
		Label lblNewLabel_10 = new Label("\u5B66\u5386\uFF1A");
		lblNewLabel_10.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
		grid.setWidget(10, 0, lblNewLabel_10);
		
		ListBox gradute = new ListBox();
		gradute.addItem("");
		gradute.addItem("\u5C0F\u5B66");
		gradute.addItem("\u521D\u4E2D");
		gradute.addItem("\u9AD8\u4E2D");
		gradute.addItem("\u5927\u4E13/\u672C\u79D1");
		gradute.addItem("\u7855\u58EB");
		gradute.addItem("\u535A\u58EB");
		gradute.addItem("\u66F4\u9AD8");
		grid.setWidget(10, 1, gradute);
		gradute.setWidth("131px");
		
		Label label_9 = new Label("New label");
		grid.setWidget(10, 2, label_9);
		
		Label lblNewLabel_11 = new Label("\u5B66\u6821\uFF1A");
		lblNewLabel_11.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
		grid.setWidget(11, 0, lblNewLabel_11);
		
		TextBox collage = new TextBox();
		grid.setWidget(11, 1, collage);
		collage.setWidth("349px");
		
		Label label_10 = new Label("New label");
		grid.setWidget(11, 2, label_10);
		
		Label lblNewLabel_12 = new Label("\u7231\u597D\uFF1A");
		lblNewLabel_12.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
		grid.setWidget(12, 0, lblNewLabel_12);
		
		TextBox fiverate = new TextBox();
		grid.setWidget(12, 1, fiverate);
		fiverate.setSize("351px", "54px");
		
		Label label_11 = new Label("New label");
		grid.setWidget(12, 2, label_11);
		
		Label lblNewLabel_13 = new Label("\u81EA\u6211\u63CF\u8FF0\uFF1A");
		lblNewLabel_13.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
		grid.setWidget(13, 0, lblNewLabel_13);
		
		TextBox secDesc = new TextBox();
		grid.setWidget(13, 1, secDesc);
		secDesc.setSize("352px", "51px");
		
		Label label_12 = new Label("New label");
		grid.setWidget(13, 2, label_12);
		
		AbsolutePanel absolutePanel_1 = new AbsolutePanel();
		flowPanel.add(absolutePanel_1);
		absolutePanel_1.setSize("507px", "45px");
		
		Button btnNewButton = new Button("New button");
		btnNewButton.setText("\u91CD\u7F6E");
		absolutePanel_1.add(btnNewButton, 72, 10);
		btnNewButton.setSize("82px", "23px");
		
		Button btnNewButton_1 = new Button("New button");
		btnNewButton_1.setText("\u6CE8\u518C");
		absolutePanel_1.add(btnNewButton_1, 257, 10);
		btnNewButton_1.setSize("82px", "23px");
	}
}
